#include "QSort.h"

int main()
{
	int intvals[] = { 4, 15, 5, 3, 6, 7, 12, 2, 12, 25, 9, 8 }; //Size 12
	printf("Before sort, int array: ");
	for (int index = 0; index < 12; index++)
		printf("%d ", intvals[index]);
	printf("\n");
	QSort<int> sortD(intvals, 12);
	printf("\nAfter sort, int array: ");
	for (int index = 0; index < 12; index++)
		printf("%d ", intvals[index]);
	printf("\n");
	double doublevals[] = { 0.5, 0.9, 0.213, 0.66, 1.24, 4.25, 3.25 };//Size 7
	printf("\n\nBefore sort, double array: ");
	for (int index = 0; index < 7; index++)
		printf("%f ", doublevals[index]);
	printf("\n");
	QSort<double> sortF(doublevals, 7);
	printf("\nAfter sort, double array: ");
	for (int index = 0; index < 7; index++)
		printf("%f ", doublevals[index]);
	printf("\n");
	system("pause");
	return 0;
}